package com.gigi.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 创建、修改队伍请求实体
 *
 * @author gigi
 */
@Data
public class TeamDTO {

    @ApiModelProperty(value = "主键id")
    private Long id;

    @NotBlank(message = "名称不能为空")
    @ApiModelProperty(value = "名称")
    private String teamName;

    @NotBlank(message = "描述不能为空")
    @ApiModelProperty(value = "描述")
    private String teamDescription;

    @NotNull(message = "最大人数不能为空")
    @ApiModelProperty(value = "最大人数")
    private Integer maxNum;

    @NotNull(message = "过期时间不能为空")
    @ApiModelProperty(value = "过期时间")
    private LocalDateTime expireTime;

    @NotNull(message = "状态不能为空")
    @ApiModelProperty(value = "状态（0公开 1加密）")
    private Integer teamStatus;

    @ApiModelProperty(value = "密码")
    private String teamPassword;

    @ApiModelProperty(value = "旧密码")
    private String oldPassword;

    @ApiModelProperty(value = "新密码")
    private String newPassword;

}
